package com.SmartCampus.system.model.dto.activity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 完满活动创建请求
 *
 * @author wangliang
 */
@Data
public class ActivityAddRequest implements Serializable {

    /**
     * 活动名称
     */
    @NotNull
    @ApiModelProperty(value = "活动名称", required = true)
    private String activityName;

    /**
     * 开始时间
     */
    @NotNull
    @ApiModelProperty(value = "开始时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull
    @ApiModelProperty(value = "结束时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 地点
     */
    @NotNull
    @ApiModelProperty(value = "活动地点", required = true)
    private String location;

    /**
     * 描述
     */
    @NotNull
    @ApiModelProperty(value = "活动描述", required = true)
    private String description;

    /**
     * 组织者
     */
    @NotNull
    @ApiModelProperty(value = "组织者", required = true)
    private String organizer;


    private static final long serialVersionUID = 1L;
}